<div class="scaffold">

  <h1>Listing textblocks</h1>

  <table class="list">
    <thead>
      <tr>
        <th>Name</th>
        <th>Content</th>
        <th class="actions">Actions</th>
      </tr>
    </thead>
    <tbody>
      <% for textblock in @textblocks %>
        <tr>
          <td><%=h textblock.name %></td>
          <td><%=h textblock.content %></td>

          <td>
            <%= link_to '', textblock, :class => 'action button_show', :title => 'Show' %>
            <%= link_to '', edit_textblock_path(textblock), :class => 'action button_edit', :title => 'Edit' %>
            <%= link_to '', textblock, :confirm => 'Are you sure?', :method => :delete, :class => 'action button_destroy', :title => 'Destroy' %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

  <ul class="actions">
    <li><%= link_to 'New textblock', new_textblock_path, :class => 'button_new' %></li>
  </ul>

</div>
